//
//  BZMineTableViewController.swift
//  weibo
//
//  Created by zzx on 2017/7/22.
//  Copyright © 2017年 zzx. All rights reserved.
//

import UIKit

class BZMineTableViewController: BZVisitorTableVC {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin {
            
            setupNavigationItem()
            
        }else{
        
            if !isLogin {
                visitorView?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
            }
        
        }
        
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    //MARK:- 设置导航栏按钮
    private func setupNavigationItem() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(PushAction))
        
    }
    
    @objc fileprivate func PushAction() {
        
        let textView = BZTextViewController()
        
        self.navigationController?.pushViewController(textView, animated: true)
        
    }
    

}
